	import model.UserModel;
	import mx.managers.PopUpManager;
	
	
	public var user_model:UserModel;
	
	
	public function func_init(): void {
		user_model = new UserModel();
	}
	
	public function func_set_vars(obj:Object): void {
		if(obj.user_model){
			user_model = obj.user_model;
			func_init_fields();
		}
	}
	
	public function func_init_fields(): void {
		txt_userid.text = user_model.userid;
		txt_password.text = user_model.password;
		txt_username.text = user_model.username;
		txt_userrole.text = user_model.userrole;
		txt_userdescription.text = user_model.userdescription;
	}
	
	private function func_close_popup(): void {
		PopUpManager.removePopUp(this);
	}